-- GENERATED SPELL FOR [Gargoral the Water Lord] --


function spell0_30024(pUnit, Event) --@Crashing Wave,n/a--
pUnit:FullCastSpellOnTarget(55909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30024', 658, 1)
end

function Sorts_30024(pUnit, Event)
local choix_sorts_30024 = math.random(0, 0)
if choix_sorts_30024 == 0 then
pUnit:RegisterEvent('spell0_30024', 1, 1)
end
end

function mob30024_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30024', math.random(1500, 3000), 1)
end

function mob30024_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30024_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30024_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30024, 1, 'mob30024_Action')
RegisterUnitEvent(30024, 2, 'mob30024_Leave')
RegisterUnitEvent(30024, 3, 'mob30024_Kill')
RegisterUnitEvent(30024, 4, 'mob30024_Die')
